﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using DBSourceToolsLib;


namespace DBSourceTools
{
    public partial class DatabasesForm : Form
    {
        public DatabasesForm()
        {
            InitializeComponent();
        }



        private void DatabasesForm_Load(object sender, EventArgs e)
        {
            this.m_databasesDS.ReadXml(DBSourceToolsLib.UserSettings.Instance().ProjectBaseDirectory + "\\Databases.xml");


        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.m_databasesDS.AcceptChanges();
            this.m_databasesDS.WriteXml(DBSourceToolsLib.UserSettings.Instance().ProjectBaseDirectory + "\\Databases.xml");
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
